<?php namespace Core\Myapp\Helper;

class Event extends \Core\Myapp\Zobero
{
    public function collecListeners()
    {
        $modules = $this->getRegistry('modules');
        foreach($modules as $module)
        {
            if($module->events) {
                foreach($module->events as $event) {
                    $name = $event->name;
                    $route = '';
                    $controller = '';
                    $action = '';
                    $this->getSingleton('\Core\Myapp\Event\Event')->addListener($event);
                }
            }
        }
    }
}